console.log('hello webpack typescript');
// document.body.style.background = '#ccc';
let n: number = 100;
console.log(n);

//使用 jquery 
import $ from 'jquery';

//修改背景颜色
$('body').css('background','#832');

//内置类型
let b: Boolean = true; //不用
let b2: boolean = false; // √

let b3: Boolean = new Boolean(false);
let n2: Number = new Number(123);
let s2: String = new String('123');

//时间
let date: Date = new Date();
//正则
let reg: RegExp = /abc/;
//错误对象
let e: Error = new Error();


//获取页面某个元素
let h2: HTMLElement = document.querySelector('h2') as HTMLElement;



